package com.soilflow.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.soilflow.common.mybatisplus.BaseEntity;
import com.soilflow.common.utils.annotation.Excel;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/** 
@author dhp 
@date 2022/10/14 - 11:08
*/
@TableName(value = "sys_template")
@Data
public class SysTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 模板类型 */
    @Excel(name = "模板类型")
    private Long type;

    /** 地址url */
    @Excel(name = "地址url")
    private String url;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    private  Boolean  defaultFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("url", getUrl())
                .append("name", getName())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}